package cn.yitun.chat.yitunserverimbase.dao.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.vo.system.user.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 好友分组信息
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-06-21 21:52:52
 */
@Mapper
public interface ContactDao {
	/**
	 * Date 2019-01-20 18:13:46<br>
	 * Description 获取用户的所有的联系人
	 * @author yitun
	 * @param ownerUserId
	 * @return
	 * @since 1.0.0
	 */
	List<UserVo> getUserDataListByContactRelationOwnerUserId(@Param("ownerUserId") Long ownerUserId);

	/**
	 * Date 2019-01-20 18:13:46<br>
	 * Description 用户的所有的联系人 计数
	 * @author yitun
	 * @param ownerUserId
	 * @return
	 * @since 1.0.0
	 */
    int countUserDataListByContactCategoryMemberOwnerUserId(@Param("ownerUserId") Long ownerUserId);
}
